import request from "@/utils/request";

export function getTempLayerTempConfig(data){
    return request({
        url:'/portal/resourceCatalog/tempLayer/temp',
        method:'get',
        params:data
    })
}

export function getTempLayerList(){
    return request({
        url:'/portal/resourceCatalog/tempLayer/list',
        method:'get'
    })
}

export function insertTempLayer(data){
    return request({
        url:'/portal/resourceCatalog/tempLayer/insert',
        method:'post',
        params:data
    })
}

export function deleteTempLayer(id){
    return request({
        url:'/portal/resourceCatalog/tempLayer/delete/'+id,
        data:'delete'
    })
}

export function getFavoriteLayerList(){
    return request({
        url:'/portal/resourceCatalog/favoriteLayer/list',
        method:'get'
    })
}

export function insertFavoriteLayer(data){
    return request({
        url:'/portal/resourceCatalog/favoriteLayer/insert',
        method:'post',
        params:data,

    })
}

export function deleteFavoriteLayer(id){
    return request({
        url:'/portal/resourceCatalog/favoriteLayer/delete/'+id,
        method:'delete'
    })
}

export function getResourceCatalogList(){
    return request({
        url:'/portal/resourceCatalog/list',
        method:'get'
    })
}

export function getCatalogQueryConfigListByIds(listByIds){
    return request({
        url:'/portal/resourceCatalog/queryConfig/listByIds',
        method:'get',
        params:listByIds
    })
}

export function getCatalogQueryConfigListById(serviceId){
    return request({
        url:'/portal/resourceCatalog/queryConfig/listById',
        method:'get',
        params:serviceId
    })
}

export function getCatalogStatisticsConfigListById(serviceId){
    return request({
        url:'/portal/resourceCatalog/statisticsConfig/listById',
        method:'get',
        params:serviceId
    })
}

export function getPoi(data){
    return request({
        url:'/portal/resourceCatalog/poi/list',
        method:'get',
        params:data
    })
}

export function getXzqServerConfigList(){
    return request({
        url:'/resource/xzqService/list',
        method:'get'
    })
}
